package com.ruoyi.fun.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 ec_coupon
 * 
 * @author ruoyi
 * @date 2025-08-15
 */
public class EcCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券ID */
    private Long couponId;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String couponName;

    /** 优惠券类型 */
    @Excel(name = "优惠券类型")
    private String couponType;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal couponAmount;

    /** 折扣率（0.1-1.0） */
    @Excel(name = "折扣率", readConverterExp = "0=.1-1.0")
    private BigDecimal discountRate;

    /** 最低消费金额 */
    @Excel(name = "最低消费金额")
    private BigDecimal minAmount;

    /** 最高优惠金额 */
    @Excel(name = "最高优惠金额")
    private BigDecimal maxAmount;

    /** 发行总数 */
    @Excel(name = "发行总数")
    private Long totalCount;

    /** 已使用数量 */
    @Excel(name = "已使用数量")
    private Long usedCount;

    /** 已领取数量 */
    @Excel(name = "已领取数量")
    private Long receiveCount;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enableTime;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 发布状态 */
    @Excel(name = "发布状态")
    private String publishStatus;

    /** 使用说明 */
    @Excel(name = "使用说明")
    private String note;

    
    /** 组织ID */
    @Excel(name = "组织ID")
    private Long orgId;

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }

    public void setCouponType(String couponType) 
    {
        this.couponType = couponType;
    }

    public String getCouponType() 
    {
        return couponType;
    }

    public void setCouponAmount(BigDecimal couponAmount) 
    {
        this.couponAmount = couponAmount;
    }

    public BigDecimal getCouponAmount() 
    {
        return couponAmount;
    }

    public void setDiscountRate(BigDecimal discountRate) 
    {
        this.discountRate = discountRate;
    }

    public BigDecimal getDiscountRate() 
    {
        return discountRate;
    }

    public void setMinAmount(BigDecimal minAmount) 
    {
        this.minAmount = minAmount;
    }

    public BigDecimal getMinAmount() 
    {
        return minAmount;
    }

    public void setMaxAmount(BigDecimal maxAmount) 
    {
        this.maxAmount = maxAmount;
    }

    public BigDecimal getMaxAmount() 
    {
        return maxAmount;
    }

    public void setTotalCount(Long totalCount) 
    {
        this.totalCount = totalCount;
    }

    public Long getTotalCount() 
    {
        return totalCount;
    }

    public void setUsedCount(Long usedCount) 
    {
        this.usedCount = usedCount;
    }

    public Long getUsedCount() 
    {
        return usedCount;
    }

    public void setReceiveCount(Long receiveCount) 
    {
        this.receiveCount = receiveCount;
    }

    public Long getReceiveCount() 
    {
        return receiveCount;
    }

    public void setEnableTime(Date enableTime) 
    {
        this.enableTime = enableTime;
    }

    public Date getEnableTime() 
    {
        return enableTime;
    }

    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }

    public void setPublishStatus(String publishStatus) 
    {
        this.publishStatus = publishStatus;
    }

    public String getPublishStatus() 
    {
        return publishStatus;
    }

    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("couponName", getCouponName())
            .append("couponType", getCouponType())
            .append("couponAmount", getCouponAmount())
            .append("discountRate", getDiscountRate())
            .append("minAmount", getMinAmount())
            .append("maxAmount", getMaxAmount())
            .append("totalCount", getTotalCount())
            .append("usedCount", getUsedCount())
            .append("receiveCount", getReceiveCount())
            .append("enableTime", getEnableTime())
            .append("expireTime", getExpireTime())
            .append("publishStatus", getPublishStatus())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
